﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.ArticleCategorys;

namespace LeadThing.AbpZeroTemplate.ArticleCategorys.Dtos
{
    /// <summary>
    /// 文章类别编辑用Dto
    /// </summary>
    [AutoMap(typeof(ArticleCategory))]
    public class ArticleCategoryEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 类别标题
        /// </summary>
        [DisplayName("类别标题")]
        [Required]
        [MaxLength(100)]
        public string Title { get; set; }

        /// <summary>
        /// 调用别名
        /// </summary>
        [DisplayName("调用别名")]
        public string CallIndex { get; set; }

        /// <summary>
        /// 父类别ID
        /// </summary>
        [DisplayName("父类别ID")]
        [Required]
        public int ParentId { get; set; }

        /// <summary>
        /// 类别ID列表(逗号分隔开)
        /// </summary>
        [DisplayName("类别ID列表(逗号分隔开)")]
        public string ClassList { get; set; }

        /// <summary>
        /// 类别深度
        /// </summary>
        [DisplayName("类别深度")]
        public int Level { get; set; }

        /// <summary>
        /// 排序数字
        /// </summary>
        [DisplayName("排序数字")]
        public int SortId { get; set; }

        /// <summary>
        /// URL跳转地址
        /// </summary>
        [DisplayName("URL跳转地址")]
        public string LinkUrl { get; set; }

        /// <summary>
        /// 备注说明
        /// </summary>
        [DisplayName("备注说明")]
        public string Content { get; set; }

        /// <summary>
        /// SEO标题
        /// </summary>
        [DisplayName("SEO标题")]
        [MaxLength(500)]
        public string SeoTitle { get; set; }

        /// <summary>
        /// SEO关健字
        /// </summary>
        [DisplayName("SEO关健字")]
        [MaxLength(500)]
        public string SeoKeywords { get; set; }

        /// <summary>
        /// SEO描述
        /// </summary>
        [DisplayName("SEO描述")]
        [MaxLength(500)]
        public string SeoDescription { get; set; }

    }
}
